<template>
    <div>
        <el-row>
            <el-col :span="24"><top-nav-menu @select="select"></top-nav-menu></el-col>
        </el-row>
        <keep-alive exclude="MonitorControl">
            <router-view></router-view>
        </keep-alive>
    </div>
</template>

<script>
    import TopNavMenu from '~/components/TopNavMenu'
    import LeftNavMenu from "~/components/LeftNavMenu";
    import EnterpriseStatus from "~/views/basic-information/EnterpriseStatus";
    import ValidLicense from "~/views/basic-information/ValidLicense";

    export default {
        name: "RootView",
        data(){
            return{
                current:null
            }
        },
        components:{
            TopNavMenu,LeftNavMenu,EnterpriseStatus,ValidLicense
        },methods:{
            select(index){
                if(index!==this.$router.currentRoute.name) {
                    this.$router.push({name:index});
                    this.current = index;
                }
            }
        }
    }
</script>

<style scoped>

</style>